<?php
/**
 * 此文件放在网站根目录，用于执行定时任务时的入口文件，跳过phpcms的hash的验证。
 */
header("Content-Type: text/html; charset=UTF-8");

$mysiteid="1";
$myuserid="1";
$myroleid="1";

session_start();
$_SESSION['userid']=$myuserid;
$_SESSION['roleid']=$myroleid;
$post['hash']=$_SESSION['pc_hash']='rq204';//将hash值设为固定，以此来跳过phpcms的验证

define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
include PHPCMS_PATH.'/phpcms/base.php';

//pc_base::load_sys_class('param');
//param::set_cookie('siteid',1,86400);
//param::set_cookie('userid',"1",86400);
//param::set_cookie('roleid',1,86400);
//$userid = param::get_cookie('userid');

pc_base::creat_app();
?>